$(function(){
	//加载完页面后隐藏右侧信息栏弹出内容
//	$(".user").hide();
	//鼠标放在首页面最有侧账户图片时显示右侧划出信息，离开时又划回去
//	$("#user").hover(
//		function(){$(".user").show();},
//		function(){$(".user").hide();}
//	);
	$("#user").hover(
		function(){$(".user").fadeTo(500,1);},
		function(){$(".user").css("display","none");}
	);
	
	//鼠标放到shopping时
	$("#shopping").hover(
		function(){$(".shopping").fadeTo(500,1);},
		function(){$(".shopping").css("display","none");}
	);
	//鼠标放到store时
	$("#store").hover(
		function(){$(".store").fadeTo(500,1);},
		function(){$(".store").css("display","none");}
	);
	//鼠标放到like时
	$("#like").hover(
		function(){$(".like").fadeTo(500,1);},
		function(){$(".like").css("display","none");}
	);
	//鼠标放到collect时
	$("#collect").hover(
		function(){$(".collect").fadeTo(500,1);},
		function(){$(".collect").css("display","none");}
	);
	
	//鼠标放到history时
	$("#history").hover(
		function(){$(".history").fadeTo(500,1);},
		function(){$(".history").css("display","none");}
	);
	//鼠标放到advice时
	$("#advice").hover(
		function(){$(".advice").fadeTo(500,1);},
		function(){$(".advice").css("display","none");}
	);
	//鼠标放到address时
	$("#top").hover(
		function(){$(".address").fadeTo(500,1);},
		function(){$(".address").css("display","none");}
	);
	
	//当鼠标滑过首页商品图片时，边框变色，移开后颜色恢复
	$(".good01").hover(
		function(){$(this).css("border","1px solid #3476fc");},
		function(){$(this).css("border-color","#CACACA");}
	);
	//Jquery锚点链接
	
	//当点击头部学校地址输入框时，显示确定按钮
	$('#school_address').click(function(){
		$("#school_address_submit").css("display","inline");
		$("#address_title").css("display","inline");
	});
	
	//鼠标放到首页用户名index.php位置时
	$("#top-username").hover(
		function(){$("#top-hidden01").fadeTo(500,1);},
//		function(){$("#top-hidden01").css("display","none");}
	);
	$("#top-username").hover(
		function(){$("#top-hidden02").fadeTo(500,1);},
//		function(){$("#top-hidden02").css("display","none");}
	);
});
